<!--
 * @Author: 胡晓星
 * @Date: 2024-08-08 11:52:43
 * @LastEditors: 491256909@qq.com
 * @LastEditTime: 2025-08-19 17:34:38
 * @FilePath: \src\pages\finals\index.vue
 * @Description: 
-->
<script setup lang="ts">
definePage({
  name: 'finals',
  meta: {
    level: 2,
    title: '🏆 四强对决',
    i18n: 'home.finals',
  },
})
const router = useRouter();
function jumpToDetail(id) {
  router.push(`/schedule/gameDetail?id=${id}`);
}

</script>

<template>
  <Container>
    <div class="data-content">
      <!-- 冠军 -->
      <div class="champion-box">
        <div class="cont c1 win">🏆狂飙台球<i></i></div>
          <i class="arrow2"></i>
      </div>
      <!-- 对局 -->
      <div class="three">
        <div class="three-left" @click="jumpToDetail('')">
          <div class="left-cont">狂飙台球</div>
          <p>VS</p>
          <div class="left-cont right-cont">荣万家物业</div>
          <i class="arrow1"></i>
          <i class="arrow3 arrow3-left"></i>
        </div>
        <div class="three-left2">
          <div class="left-cont">狂飙台球</div>
        </div>
        <div class="three-left2">
          <div class="left-cont">九妹门业</div>
        </div>
        <div class="three-left three-right"  @click="jumpToDetail('')">
          <i class="arrow1"></i>
          <div class="left-cont">九妹门业</div>
          <p>VS</p>
          <div class="left-cont right-cont">李记烧烤城</div>
          <i class="arrow3"></i>
        </div>
      </div>
      <!-- 亚军 -->
      <div class="champion-box">
        <div class="cont c2">九妹门业<i></i></div>
          <i class="arrow2 arrow2-bottom"></i>
      </div>
      <!-- 季军 -->
      <div class="two">
        <div class="two-left cont">荣万家物业<i></i></div>
        <p>VS</p>
        <div class="two-right cont">李记烧烤城<i></i></div>
      </div>
      <div class="one">
        <!-- <p>8月19日 19:00-20:00</p> -->
        <i class="i1"></i>
        <div class="one-cont cont c3">荣万家物业</div>
        <i class="i2"></i>
      </div>
    </div>
  </Container>
</template>

<style lang="less" scoped>
.data-content {
  padding-top: 20px;
  .champion-box{
    margin:20px auto 0;
    width: 110px;
    height: 40px;
    font-size: 16px;
    border: 1px solid #ccc;
    text-align: center;
    line-height: 40px;
    position: relative;
    .arrow2{
      position: absolute;
      top: 40px;
      left: 14px;
      background: url(../../../public/images/arrow2.png) no-repeat;
      background-size: 100% 100%;
      width: 80px;
      height: 58px;
        transform: rotate(180deg);
      &.arrow2-bottom{
        transform: rotate(0);
        top: -59px;
      }
    }
  }
  .three{
    width: 300px;
    margin:20px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    position: relative;
    &>div{
      position: relative;
      .left-cont{
        width: 60px;
        height: 32px;
        font-size: 10px;
        border: 1px solid #ccc;
        text-align: center;
        line-height: 32px;
        position: relative;
        }
    }
    .arrow1{
      position: absolute;
      top: 16px;
      left: 60px;
      background: url(../../../public/images/arrow1.png) no-repeat;
      background-size: 100% 100%;
      width: 20px;
      height: 76px;
    }
    .arrow3{
      position: absolute;
      // top: 16px;
      // left: 60px;
      background: url(../../../public/images/arrow3.png) no-repeat;
      background-size: 100% 100%;
      width: 21px;
      height: 234px;
      &.arrow3-left{
        background: url(../../../public/images/arrow3-left.png) no-repeat;
        background-size: 100% 100%;
        width: 21px;
        height: 234px;
        top: 16px;
        left: -20px;
      }
    }
    .three-right{
      .arrow1{
        transform: rotate(180deg);
        top: 16px;
        left: -20px;
      }
      .arrow3{  
        top: 16px;
        right: -20px;
      }
    }
    .two,.one{
      width: 100px;
      &>p{
        
      }
    }
    
  }

  .two,.one{
    width: 300px;
    margin:60px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    &>p{
      width: 100px;
      text-align: center;
    }
    &.one{
      justify-content: center;
    }
    .cont{
      width: 100px;
      height: 40px;
      border: 1px solid #ccc;
      text-align: center;
      line-height: 40px;
      position: relative;
      p{
        position: absolute;
        bottom: -40px;
        left: 0;
        width: 100%;
        text-align: center;
        font-size: 10px;
        color: #cfa4fa;
      }
    }
  }
  .two{
    i{
      width: 1px;
      height: 30px;
      background: #ccc;
      position: absolute;
      left: 50px;
      bottom: -32px;
    }
  }
  .one{
    position: relative;
    p{
      position: absolute;
      width: 200px;
      height:30px;
      line-height: 30px;
      text-align: center;
      top: -70px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 12px;
      color: #666;
    }
    .i1{
      width: 200px;
      height: 1px;
      background: #ccc;
      position: absolute;
      top: -32px;
      left: 51px;
    }
    .i2{
      width: 1px;
      height: 32px;
      background: #ccc;
      position: absolute;
      top: -32px;
      left: 152px;
    }
    .i3{
      width: 1px;
      height: 40px;
      background: #ccc;
      position: absolute;
      bottom: -40px;
      left: 152px;
    }
    &.one2{
      .i1{
        top: auto;
        bottom: -32px;
      }
      .i2{
        top: auto;
        bottom: -32px;
      }
      .i3{
        bottom: auto;
        top: -40px;
      }
      p{
        top: auto;
        bottom: -70px;
      }
    }
    
  }
 
}
.c1,.c2,.c3{
  font-weight: bold;
  font-size: 16px;
}
.win{
  color: #fff;
  font-weight: bold;
  background: #fe6d68;
  border: 1px solid #fe6d68;
}

</style>
